package com.example.excel.utils;

import android.widget.TextView;

import androidx.databinding.BindingAdapter;

import com.example.excel.bean.ListBean;

public class BindAdapterUtils {

    @BindingAdapter("pageNumber")
    public static void setRefreshPageNumber(TextView textView, ListBean data) {
        if (data == null) {
            return;
        }
        textView.setText(String.format("页码 %s / %s", data.getCurrentPage(), data.getTotal()));
    }

}
